Git CLI远程代码执行漏洞(CVE-2020-26233)

src/shared/Microsoft.Git.CredentialManager/CommandContext.cs的代码:

第89行中,将创建一个搜索git.exe的新进程,并将Environment.LocateExecutable('git.exe')作为目录路径参数传递给GitProcess()函数。

利用步骤:

  • a)创建一个新的存储库或将文件添加到现有存储库;
  • b)将Windows可执行文件上传到此存储库,重命名为git.exe;
  • c)等待受害者fork存储库

使用gh repo fork REPOSITORY_NAME --clone frok后触发rce:

ref:

Edge Security文库 all right reserved,powered by GitbookFile Modify: 2021-05-22 00:14:38

results matching ""

    No results matching ""